{% extends "template/listEdit.volt" %}

{% block title %}用户管理{% endblock %}


{% block filter %}
    <div class="col-md-4 col-sm-6 col-xs-12">
        <table>
            <tr>
                <th>登录手机:</th>
                <td><input type="text" name="phone" value=""></td>
            </tr>
            <tr>
                <th>设备ID:</th>
                <td><input type="text" name="device_id" value=""></td>
            </tr>
        </table>
    </div>
    <div class="col-md-4 col-sm-6 col-xs-12">
        <table>
            <tr>
                <th>登录时间:</th>
                <td><input type="date-h" name="created_at_start" data-attr="date" id="flight-date-start"
                           value="">-<input type="date-h" name="created_at_end" data-attr="date right" class="end"
                                            value=""></td>
            </tr>
            <tr>
                <th>登录类型:</th>
                <td><select name="login_type">
                        <option>请选择</option>
                        <option value="0">无人机管家</option>
                        <option value="1">云监控平台</option>

                    </select>
                </td>
            </tr>

        </table>
    </div>
    <div class="col-md-4 col-sm-6 col-xs-12">
        <table>
            <tr>
                <th>客户端:</th>
                <td><input type="text" name="user_agent" value=""></td>
            </tr>
            <tr>
                <td colspan="2">
                    <div id="btn_reset_param" class="btn-0 button">重 置</div>
                    <div id="btn_search_data" class="btn-1 button">过 滤</div>
                </td>
            </tr>
        </table>
    </div>
{% endblock %}

{% block hiddenOperation %}hidden{% endblock %}

{% block jscontent %}
    <script>

        function actionDelete(tag) {
            var result = confirm("您确定删除该记录?");
            if (result) {
                $.post("/subsystem/doDelete", {
                    "id": tag
                }, function (result) {

                    PageDataProxy.refresh();
                });
            }

        }


        $(function () {
            PageDataProxy.init({
                "url": "/user/listLoginRecord",
                "table_id": "#mytable",
                "page_control_id": "#data-wrap",
                "page_size_id": "#rows-perpage-select",
                "page_total_id": "#data_count_total",
                "use_check_box": false,
                "data_field_process": function (name, value) {
                    return value;
                },
                "table_style": {
                    "permission_local_gps": "width-150",
                    "user_agent": "width-450",
                    "id": "width-s",
                    "device_id": "width-m",
                    "phone": "width-m",
                    "created_at": "width-m",
                    "ip": "width-m"
                },

            });


        })
    </script>
{% endblock %}